import axios from '../../axios'

/* 
 * 货位查询
 */

// 分页查询
export const findPage = (data) => {
    return axios({
        url: '/CoreStockDet/findPage',
        method: 'post',
        data
    })
}
export const printDetail = (data) => {
    return axios({
        url: '/CoreStockDet/printDetail',
        method: 'post',
        data
    })
}

export const changeDetailPos = (data) => {
    return axios({
        url: '/CoreStockDet/changeDetailPos',
        method: 'post',
        data
    })
}
export const findDetailPage = (data) => {
    return axios({
        url: '/CoreStockDet/findDetailPage',
        method: 'post',
        data
    })
}



// 保存货物
export const SaveStock = (data) => {
    return axios({
        url: '/CoreStockDet/SaveStock',
        method: 'post',
        data
    })
}



export const getStockDetail = (data) => {
    return axios({
        url: '/CoreStockDet/getStockDetail',
        method: 'post',
        data
    })
}
 
 



export const deleteStock = (data) => {
    return axios({
        url: '/CoreStockDet/deleteStock',
        method: 'post',
        data
    })
}

export const deleteStockDetail = (data) => {
    return axios({
        url: '/CoreStockDet/deleteStockDetail',
        method: 'post',
        data
    })
}

export const stockDetailOut = (data) => {
    return axios({
        url: '/CoreStockDet/stockDetailOut',
        method: 'post',
        data
    })
}



// 更新状态
export const UpdateStatusById = (data) => {
    return axios({
        url: '/CoreStockDet/UpdateStatusById',
        method: 'post',
        data
    })
}
// 明细查询
export const GetListByStockId = (data) => {
    return axios({
        url: '/CoreStockDet/GetListByStockId',
        method: 'post',
        data
    })
}


 


export const UpdatePriorityByCoreId = (data) => {
    return axios({
        url: '/CoreStockDet/UpdatePriorityByCoreId',
        method: 'post',
        data
    })
}


export const DirectOutTask = (data) => {
    return axios({
        url: '/CoreStockDet/DirectOutTask',
        method: 'post',
        data
    })
}

export const detOutEngine = (data) => {
    return axios({
        url: '/CoreStockDet/detOutEngine',
        method: 'post',
        data
    })
}
export const splitDetEngine = (data) => {
    return axios({
        url: '/CoreStockDet/splitDetEngine',
        method: 'post',
        data
    })
}


export const pdaHideDet = (data) => {
    return axios({
        url: '/CoreStockDet/pdaHideDet',
        method: 'post',
        data
    })
}

export const pkLess = (data) => {
    return axios({
        url: '/CoreStockDet/pkLess',
        method: 'post',
        data
    })
}
//根据出库单明细主键查询出库单主表实体
export const saveStockDet = (data) => {
    return axios({
        url: '/CoreStockDet/saveStockDet',
        method: 'post',
        data
    })
}

export const changeDetBox = (data) => {
    return axios({
        url: '/CoreStockDet/changeDetBox',
        method: 'post',
        data
    })
}
export const changeCsdDooDetId = (data) => {
    return axios({
        url: '/CoreStockDet/changeCsdDooDetId/'+ data,
        method: 'get',
        data
    })
}